// 权限模块API
import request from '@/utils/request'

export const uploadPath = process.env.VUE_APP_BASE_API + 'apiManage/PicUpload'

export const baseUrl = process.env.VUE_APP_BASE_API.replace(':9503', '')

// 分类列表
export function getList(data) {
  return request({
    url: '/apiManage/C2cTypeList',
    method: 'post',
    data
  })
}

export function getPage(data) {
  return request({
    url: '/apiManage/C2cGoodsPage',
    method: 'post',
    data
  })
}

export function save(data) {
  return request({
    url: '/apiManage/C2cGoodsUpdate',
    method: 'post',
    data
  })
}

export function deletInfo(data) {
  return request({
    url: '/apiManage/C2cGoodsDel',
    method: 'post',
    data
  })
}

